<?php
namespace catchAdmin\apipatient\validate;

use think\Validate;

class MyValidate extends Validate
{
    protected $rule = [
        'sid' => 'require',
        'type' => 'require'
    ];

    protected $message = [
        'sid.require' => '缺少sid参数',
        'type.require' => '缺少type参数'
    ];

    protected $scene = [
        'get_my_info' => ['type'],
        'get_my_family_detailed' => ['sid']
    ];  
}